package data.base;



public class Vertex extends Vector3{
  protected Vector3 normal;
  protected TextureCoordinate textureCoordinate;
    
  public Vertex(double x, double y, double z) {
    super(x, y, z);
  }
  
  public Vertex(Vector3 p) {
    super(p.getX(), p.getY(), p.getZ());
  }

  public Vertex(Vector3 p, Vector3 normal) {
    this(p);
    this.normal = normal;
  }
  
  public Vertex(Vector3 p, TextureCoordinate textureCoordinate) {
    this(p);
    this.textureCoordinate = textureCoordinate;
  }

  public Vertex(Vector3 p, TextureCoordinate textureCoordinate, Vector3 normal) {
    this(p, normal);
    this.textureCoordinate = textureCoordinate;
  }

  public Vector3 getNormal() {
    return normal;
  }

  public void setNormal(Vector3 normal) {
    this.normal = normal;
  }

  public TextureCoordinate getTextureCoordinate() {
    return textureCoordinate;
  }

  public void setTextureCoordinate(TextureCoordinate textureCoordinate) {
    this.textureCoordinate = textureCoordinate;
  }
}
